﻿using Serilog;
using Serilog.Core;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ArcLightProtector
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (File.Exists("1.txt"))
            {
                if (Directory.Exists("logs")) Directory.Delete("logs", true);
                Log.Logger = new LoggerConfiguration().MinimumLevel.Information().WriteTo.File("logs\\log-.txt", rollingInterval: RollingInterval.Day).CreateLogger();
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
